home *** CD-ROM | disk | FTP | other *** search
- package Code.FIELD.effects
- {
- import Code.LIB._wy567;
- import flash.events.Event;
-
- public class _xj355 extends _wy567
- {
- public static const stFly:int = 0;
-
- public static const stFlyAlpha:int = 1;
-
- private var state:int;
-
- private var step:int = 0;
-
- public function _xj355(param1:int, param2:int, param3:String = null, param4:Boolean = false)
- {
- step = 0;
- super(param1,param2,param3,param4);
- this.addEventListener(Event.ENTER_FRAME,onEnterFrame);
- this.state = stFly;
- }
-
- public function onEnterFrame(param1:Event) : void
- {
- switch(state)
- {
- case stFly:
- this._vg471 -= 3;
- if(++step >= 30)
- {
- state = stFlyAlpha;
- }
- break;
- case stFlyAlpha:
- this.alpha -= 0.09;
- this._vg471 -= 3;
- if(alpha <= 0)
- {
- removeEventListener(Event.ENTER_FRAME,onEnterFrame);
- parent.removeChild(this);
- }
- }
- }
- }
- }
-
-